var header = document.getElementsByTagName('header')[0];
$(window).scroll(function(){
	var scrollHeight = $(window).scrollTop();
	if(scrollHeight >= 40){
		header.style.position = 'fixed';
		header.style.top = 0;
	}
	else{
		header.style.position = 'static';
	}
})
